﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using TMS_BackEnd.Models.SH;

namespace TMS_BackEnd.Configers
{
    public class sys_role_menuConfigers : IEntityTypeConfiguration<sys_role_menu>
    {
        public void Configure(EntityTypeBuilder<sys_role_menu> builder)
        {
            builder.ToTable(nameof(sys_role_menu));
            builder.HasKey(e => e.Id);
            builder.Property(e => e.role_id).HasColumnType("bigint");
            builder.Property(e => e.menu_id).HasColumnType("bigint");
        }
    }
}
